// This header file is designed to provide a specification for
// our character setup window
//
// Created by Christopher Bowlsby
// Last updated on 11/23

#ifndef CREATEPLAYER_H
#define CREATEPLAYER_H

#include <QtGui/QDialog>
#include <string>
#include "PlayerStats.h"

// Qt elements
namespace Ui {
    class createPlayer;
}

class createPlayer : public QDialog
{
    Q_OBJECT

    private:
        // holds name and class of player
        std::string pname, pclass;

        // holds stats of player
        PlayerStats pStats;
        Ui::createPlayer *ui;

        // index of chosen player
        int ind;

    // slots to handle button clicks
    private slots:
        void on_okButton_clicked();
        void on_classList_currentIndexChanged(int);
        void on_regenStats_clicked();

    public:
        explicit createPlayer(QWidget *parent = 0);
        ~createPlayer();

        // setters and getters
        void setPlayerName(std::string);
        std::string getPlayerName() const;
        void setPlayerClass(std::string);
        std::string getPlayerClass() const;
        void setPlayerStats(PlayerStats);
        PlayerStats getPlayerStats() const;
        void setIndex(int);
        int getIndex() const;
};

#endif // CREATEPLAYER_H
